package com.umerclass.frame.ui.recycleview.anim.adapters;

import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.view.View;

import androidx.recyclerview.widget.RecyclerView;

public class SlideInBottomAnimationAdapter extends AnimationAdapter {

  public SlideInBottomAnimationAdapter(RecyclerView.Adapter adapter) {
    super(adapter);
  }

  @Override
  protected Animator[] getAnimators(View view) {
    return new Animator[] {
        ObjectAnimator.ofFloat(view, "translationY", view.getMeasuredHeight(), 0)
    };
  }
}
